[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DEFINE EVENT <label> AT

Description:
This command creates a super icon as a mouse click button and adds it to
the GET list for processing with WAIT EVENT TO.  An optional ACTIVATE
clause is used to display it immediately.  The SHADOW clause will draw a
shadow box behing the icon.

Syntax:
DEFINE EVENT <label> AT <Pos1>,<Pos2> USING SUPER ICON <icon> ;
  [SHADOW] [ACTIVATE]

Arguments:
<Pos1> is the center point row screen coordinate of the super icon button.
<Pos2> is the center point column screen coordinate of the super icon
  button.
<label> is the button name.
<icon> is the icon number from the current super icon file.
<ACTIVATE> is an optional specification that activates and displays the
  button once it's defined.
<SHADOW> is an optional specification that draws a shadow behind the
  button.

Example:
DEFINE EVENT "one" AT 03,08 ;             // define/disp icon button
  USING SUPER ICON 2 SHADOW ACTIVATE

         Purpose: Define a super icon button
 Mapped Function: __DefIconButton() contained in GLLIBR.PRG.
   dGE functions: None.
   Other GL UDFs: __ScanObjects,__ActIconButton(),__HandleError()
System variables: _eshadow_,_handles_[]
System constants: None.

See Also:
ACTIVATE EVENT, DEACTIVATE EVENT, RELEASE EVENT

See Also: __DefIconButton()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson